package features.advance.edu.thinking_in_java.chapter9_interface;

import java.io.IOException;
import java.nio.CharBuffer;
import java.util.Scanner;

public class CharRandom implements Readable{
    @Override
    public int read(CharBuffer cb) throws IOException {
        cb.append('a');
        return -1;
    }


    public static void main(String[] args) {
        Scanner sc = new Scanner(new CharRandom());
        System.out.println(sc.next());
        sc.close();
    }
}
